#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <erpc_server_setup.h>
#include "c_cifar10_server.h"

double cifar10_recognize(int32_t width, int32_t height, const binary_t * imgDat)
{
    int i, j, k;
printf("===== cifar10 recognize called =====\n");

    return 0.0;
}

int main(int argc, char *argv[])
{
    erpc_transport_t transport = erpc_transport_tcp_init("127.0.0.1", 5555, true);
    erpc_mbf_t message_buffer_factory = erpc_mbf_dynamic_init();
    erpc_server_t server = erpc_server_init(transport, message_buffer_factory);

    erpc_service_t service = create_Cifar10_service();
    erpc_add_service_to_server(server, service);
    while(1){
        erpc_server_run(server);
    }

    destroy_Cifar10_service(service);
    erpc_transport_tcp_close(transport);

    return 0;
}

